import { http } from '@/utils/http/axios';

const prefix = '/auth';

export default {
  /**
   * 用户登录
   * @param data
   */
  login: (data: object) => http.request({
    url: '/auth/login',
    method: 'POST',
    data,
  },{
    isTransformResponse: false,
  }),
  /**
   * 用户登出
   * @param data
   */
  logout: (data: object) => http.post(`${prefix}/logout`, data),
};

